home *** CD-ROM | disk | FTP | other *** search
- Path: in1.uu.net!tandem!usenet
- From: Anatoli Mandelchtam <tolik@tarley_pc.loc201.tandem.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Which is better????
- Date: Sun, 24 Mar 1996 22:37:17 -0800
- Organization: Tandem Computers Inc., Cupertino, CA
- Message-ID: <31563F1D.4DC2@tarley_pc.loc201.tandem.com>
- References: <3155559E.7120@dial.pipex.com>
- NNTP-Posting-Host: miket_home1.fnord.tandem.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; I)
-
- gs94@dial.pipex.com wrote:
- >
- > I have a project where data is passed between functions, as is fairly normal in a
- > C++ program. What I would like to know is:
- >
- > Which is better / faster, passing data by pointers or by reference, e.g.
-
- It is exactly the same. Just do not pass it by value. :-)
-
- Regards,
-
- Anatoli.
-